package day4;

public class Demo {
    public static void main(String[] args) {
        int num1=0;
        int num2=0;
        int num3=0;
        int i = 0;
        for (; i <= 100; i++) {
            if (i % 2 == 0) {
                num2+=i;
            }
            else{
                num1+=i;
            }
            num3+=i;
        }
        System.out.println(i);
        System.out.println(num1);
        System.out.println(num2);
        System.out.println(num3);
    }
}
